/**
 * @author [siwi]
 * @email [siwi@siwi.me]
 * @create date 2017-09-23 11:44:15
 * @modify date 2017-09-23 11:44:15
 * @desc [菜单 权限表]
*/


const { mongoose, Schame } = require('../Mongoose')

const Table = new Schame({
    parent_id: {
        type: String,
        index: true
    },
    permission_name: {
        type: String,
        required: true,
    },
    route_name: {
        type: String
    },
    system_key: {
        type: String,
        required: true,
    },
    icon: {
        type: String,
        default: ''
    },
    sort: {
        type: Number,
        default: 10
    },
    remark: {
        type: String,
        default: ''
    }
})

const Permission = mongoose.model('Permission', Table)
module.exports = Permission